package glupson;

import java.io.IOException;

public class Glupson implements IGlupson {

	
	@Override
	public double square(double a) {
		return a * a;
	}

	@Override
	public double sum(double a, double b) {
		return a + b;
	}

	@Override
	public double mul(double a, double b) {
		return a * b;
	}

	@Override
	public double div(double a, double b) throws  IOException{
		if (b != 0)
			return a / b;
		else
			throw new IOException();
		
	}
	

}
